package com.example.administrator.democ;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class TimeReceiver extends BroadcastReceiver {
    private InOnChangeListener listener;

    public TimeReceiver(InOnChangeListener listener){
        this.listener = listener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        listener.updateTime();
    }
}
